{if $coverage != 'none'}
<div class="page {if !$coverage}no-cover{else}{if $coverage.total|round >= 80}good-cover{elseif $coverage.total|round <= 30}bad-cover{/if}{/if}">
    <div class="xtop"><div class="xb1"></div><div class="xb2"></div><div class="xb3"></div><div class="xb4"></div></div>
    <div class="core">

        <div class="coverage_ico"><img src="{$subdir}media/images/{if !$coverage}no{/if}coverage.png"/></div>
        {if $coverage}
        <div class="coverage_indicator">
        <span class="big">{$coverage.total|round}%</span>
        </div>
        <table>
        <tr>
            <td><strong>Methods</strong> ({$coverage.coveredmethods}/{$coverage.methods})</td>
            <td><strong>Statements</strong> ({$coverage.coveredstatements}/{$coverage.statements})</td>
            {*<td><strong>Lines</strong> ({$coverage.coveredelements}/{$coverage.elements})</td>*}
        </tr>
        <tr>
        <td style="padding-right: 15px;">
        {assign var="pwidth" value=$coverage.procmethods/100*120}
        {math equation="120 - x" x=$pwidth|round assign="pwidth"}
        <span class="progressBar {if $coverage.procmethods|round >= 80}percentImage1{elseif $coverage.procmethods|round <= 30}percentImage4{else}percentImage2{/if}">
            <img style="width: 120px; height: 12px; background-position: -{$pwidth}px 50%;" src="{$subdir}media/images/percentImage.png" />
            <span>{$coverage.procmethods|round:2}%</span>
        </span>
        </td>

        <td style="padding-right: 15px;">
        {assign var="pwidth" value=$coverage.procstatements/100*120}
        {math equation="120 - x" x=$pwidth|round assign="pwidth"}
        <span class="progressBar {if $coverage.procstatements|round >= 80}percentImage1{elseif $coverage.procstatements|round <= 30}percentImage4{else}percentImage2{/if}">
            <img style="width: 120px; height: 12px; background-position: -{$pwidth}px 50%;" src="{$subdir}media/images/percentImage.png" />
            <span>{$coverage.procstatements|round:2}%</span>
        </span>
        </td>
        {*
        <td style="padding-right: 15px;">
        {assign var="pwidth" value=$coverage.procelements/100*120}
        {math equation="120 - x" x=$pwidth|round assign="pwidth"}
        <span class="progressBar {if $coverage.procelements|round >= 80}percentImage1{elseif $coverage.procelements|round <= 30}percentImage4{else}percentImage2{/if}">
            <img style="width: 120px; height: 12px; background-position: -{$pwidth}px 50%;" src="{$subdir}media/images/percentImage.png" />
            <span>{$coverage.procelements|round:2}%</span>
        </span>
        </td>*}
        </tr>
        </table>
        {else}
            <h6>No information about coverage</h6>
        {/if}

        <div class="spacer"></div>
    
    </div>
    <div class="xtop"><div class="xb4"></div><div class="xb3"></div><div class="xb2"></div><div class="xb1"></div></div>
</div>
{/if}